package com.take.state;

/**
 * 待收货状态：有收货事件
 */
public class WaitReceiveState implements OrderState {

    @Override
    public OrderStateEnum orderStateType() {
        return OrderStateEnum.WAIT_RECEIVE;
    }

    @Override
    public void receive(OrderStateMachine stateMachine) {
        stateMachine.setCurrentState(new ReceivedState());
    }
}
